import ulite
import random

ui = ulite.createUI(backends='flask', port=5001, title='Random Int Button')
ui.root.addChild(
    ulite.Button(text='hello').subscribeEvent('click', lambda e: e.target.setAttributes(text=random.randint(0,100)))
    )
ui.show(openbrowser=True)
